package com.seari.bean.ats_iscs;

import java.io.Serializable;
import java.util.Arrays;
import java.util.List;
import java.util.Map;

/**
 * 传输对象的实体
 *
 * @Author: zyk
 * @Date: 2019/5/27 13:59
 * @Version 1.0
 */
public class AtsIscsMessageInstance implements Serializable {

    //对象组ID
    private Integer groupId;

    //对象ID
    private Integer id;

    //属性map集合，属性ID和属性值
    private Map<Integer,Integer> propertiesMap;

    //列车标签集合
    private List<byte[]> tagList;

    private String hexStr;

    public Integer getGroupId() {
        return groupId;
    }

    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Map<Integer, Integer> getPropertiesMap() {
        return propertiesMap;
    }

    public void setPropertiesMap(Map<Integer, Integer> propertiesMap) {
        this.propertiesMap = propertiesMap;
    }

    public List<byte[]> getTagList() {
        return tagList;
    }

    public void setTagList(List<byte[]> tagList) {
        this.tagList = tagList;
    }

    public String getHexStr() {
        return hexStr;
    }

    public void setHexStr(String hexStr) {
        this.hexStr = hexStr;
    }

    @Override
    public String toString() {
        StringBuilder str = new StringBuilder();
        if (tagList != null) {
            for (byte[] bytes : tagList) {
                str.append(Arrays.toString(bytes));
            }
        }
        return "AtsIscsMessageInstance{" +
                "groupId=" + groupId +
                ", id=" + id +
                ", propertiesMap=" + propertiesMap +
                ", tagList=" + str.toString() +
                ", hexStr='" + hexStr + '\'' +
                '}';
    }
}
